- printf '<!DOCTYPE HTML>
- <html><head>
- <title>Upload Progress</title>
- <link rel="stylesheet" type="text/css" href="%s/rawnet.css" />
- </head><body id=uploadprogress>
- ' "$_BASE"
- printf '<div class=progress><div class=bar style="width: 0%%;"></div><div class=count>%i / %i</div></div>\n' 0 0
+ printf '%s: %s\r\n' "Content-Type" "text/html" "Transfer-Encoding" "chunked"
+ printf '\r\n'
+
+ HTTP_CHUNK "<!DOCTYPE HTML>
+ " "<html><head>
+ <title>Upload Progress</title>
+ <!-- <link rel=\"stylesheet\" type=\"text/css\" href=\"$_BASE/rawnet.css\" /> -->
+ <style type=\"text/css\"><!--
+ #uploadprogress {
+ text-align: center;
+ background: transparent;
+ margin: 0;
+ }
+ #uploadprogress .progress {
+ display: block;
+ position: absolute;
+ top: 0;
+ width: 99%; width: calc(100% - 2pt);
+ background-color: #FFF;
+ border: 1pt solid;
+ border-radius: 4pt;
+ height: 1.25em;
+ }
+ #uploadprogress .progress .bar {
+ display: block;
+ position: absolute;
+ left: 0; top: 0; bottom: 0;
+ background-color: #666;
+ }
+ #uploadprogress .progress .count {
+ display: block;
+ position: absolute;
+ left: 0; top: 0; right: 0; bottom: 0;
+ line-height: 1.375em;
+ }
+ --></style>
+ " "</head><body id=uploadprogress>
+ "
+ HTTP_CHUNK ' <div class=progress><div class=bar style="width: 0%;"></div><div class=count>0 / 0</div></div>'